//
//  ZJSCUnDataTableViewCell.m
//  LovingPartyBuilding
//
//  Created by ZJ on 2017/5/21.
//  Copyright © 2017年 刘应平. All rights reserved.
//



#import "ZJSCUnDataTableViewCell.h"

@interface ZJSCUnDataTableViewCell ()
/** underline */
@property (nonatomic, strong) UILabel *underLine;
@end

@implementation ZJSCUnDataTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    
        [self.contentView addSubview:self.unDataImageView];
        [self.contentView addSubview:self.underLine];
        
        self.unDataImageView.sd_layout
        .topSpaceToView(self.contentView, 10 * [UIScreen zj_screenHScale])
        .leftSpaceToView(self.contentView, 0)
        .rightSpaceToView(self.contentView, 0)
        .bottomSpaceToView(self.contentView, 1 + 10 * [UIScreen zj_screenHScale]);
        
        self.underLine.sd_layout
        .leftEqualToView(self.unDataImageView)
        .rightEqualToView(self.unDataImageView)
        .bottomSpaceToView(self.contentView, 0)
        .heightIs(1);
    }
    return self;
}



#pragma mark - Setter


#pragma mark - Getters
- (UIImageView *)unDataImageView{
    if (_unDataImageView == nil){
        _unDataImageView = [UIImageView new];
        _unDataImageView.contentMode = UIViewContentModeScaleAspectFit;
    }
    return _unDataImageView;
}

- (UILabel *)underLine{
    if (_underLine == nil){
        _underLine = [UILabel new];
        _underLine.backgroundColor = [UIColor viewBGGrayColor];
    }
    return _underLine;
}

@end
